#include "../engine/Bullet.h"
#include "../phy/Phycccp.h"
#include "../shared/Utils.h"

namespace Putin{

Bullet::Bullet()
{
	mVisible = false;
	mTargetObj = 0;
	mTargetLoc = Vec3f(0,0,0);
	mProjectileObjectConstants = new ProjectileObjectConstants();
	// just some default values
	mProjectileObjectConstants->gravity = 9.82f;
	mProjectileObjectConstants->initialAngle = 0.0f;
	mProjectileObjectConstants->speed = 2.0f;
	mProjectileObjectConstants->splashRange = 5.0f;
	mOwner = 0;
	mHasExploded = false;
}

Bullet::~Bullet()
{
	if( mProjectileObjectConstants )
		delete mProjectileObjectConstants;
}


} // end Namespace Putin